﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LinkedInAuthorizerUserControl.ascx.cs"
    Inherits="RoketSolutions.SP2010.LinkedInWebPart.CONTROLTEMPLATES.RoketSolutions.SP2010.LinkedInWebPart.LinkedInAuthorizerUserControl" %>
<%@ Import Namespace="RoketSolutions.SP2010.Infrostructure.Localization" %>
<%@ Import Namespace="RoketSolutions.SP2010.LinkedInWebPart.Common" %>
<SharePoint:CssRegistration runat="server" After="corev4.css" Name="/_layouts/RoketSolutions.SP2010.LinkedInWebPart/css/social.css">
</SharePoint:CssRegistration>
<div class="ui-widget ui-widget-content">
    <asp:Label runat="server" ID="LabelError" CssClass="lb-error" Visible="false" />
    <asp:MultiView ID="loginStatusMultiView" runat="server" ActiveViewIndex="0">
        <asp:View ID="LoginView" runat="server">
            <div class="login">
                <p>
                    <asp:Literal runat="server" ID="LiteralPleaseLogin" ></asp:Literal>
                </p>
                <asp:ImageButton ID="logInUsingLinkedInButtom" runat="server" ImageUrl="/_layouts/RoketSolutions.SP2010.LinkedInWebPart/img/log-in-linkedin-large.png"
                    OnClick="logInUsingLinkedInButton_Click" />
            </div>
        </asp:View>
        <asp:View ID="LinkedInView" runat="server">
            <div class="profile-header clearfix">
                <div class="profile-picture">
                    <%if (!string.IsNullOrEmpty(entity.ProfilePictureUrl))
                      {%>
                    <img src="" alt="profile photo" runat="server" id="imgPhoto" />
                    <% } %>
                </div>
                <div class="profile-info">
                    <a runat="server" id="linkPuplicProfile">
                        <asp:Label runat="server" ID="lblFirstName" CssClass="first-name"></asp:Label>
                        <asp:Label runat="server" ID="lblLastName" CssClass="last-name"></asp:Label>
                    </a>
                    <p class="headline-title">
                        <asp:Label runat="server" ID="lblTitle"></asp:Label>
                    </p>
                    <p class="loc-info">
                        <%if (!string.IsNullOrEmpty(entity.Location))
                          {%>
                        <asp:Label runat="server" ID="lblLocation"></asp:Label>
                        <% } %>
                        <%if (!string.IsNullOrEmpty(entity.Industry))
                          {%>
                        |&nbsp;<asp:Label runat="server" ID="lblIndustry"></asp:Label>
                        <% } %>
                    </p>
                </div>
            </div>
            <div class="overview">
                <table>
                    <%if (!string.IsNullOrEmpty(entity.CurrentPositions))
                      {%>
                    <tr class="summary-current">
                        <td class="caption">
                            <asp:Literal runat="server" ID="LiteralCurrentPositions"></asp:Literal>
                        </td>
                        <td class="content">
                            <asp:Repeater runat="server" ID="rptCurrentPositions">
                                <ItemTemplate>
                                    <p>
                                        <%#Container.DataItem %></p>
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                    <% } %>
                    <%if (!string.IsNullOrEmpty(entity.ConnectionsCount))
                      {%>
                    <tr class="connections-count">
                        <td class="caption"> <asp:Literal runat="server" ID="LiteralConnections"></asp:Literal>
                            
                        </td>
                        <td class="content">
                            <p>
                                <asp:Label runat="server" ID="lblConectionsCount"></asp:Label>
                                </p>
                        </td>
                    </tr>
                    <% } %>
                    <%if (!string.IsNullOrEmpty(entity.Education))
                      {%>
                    <tr class="education">
                        <td class="caption">
                           <asp:Literal runat="server" ID="LiteralEducation"></asp:Literal> 
                        </td>
                        <td class="content">
                            <asp:Repeater runat="server" ID="rptEducation">
                                <ItemTemplate>
                                    <p>
                                        <%#Container.DataItem %></p>
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                    <% } %>
                    <%if (!string.IsNullOrEmpty(entity.Experience))
                      {%>
                    <tr class="education">
                        <td class="caption">
                           <asp:Literal runat="server" ID="LiteralExperience"></asp:Literal>  
                        </td>
                        <td class="content">
                            <asp:Repeater runat="server" ID="rptExperience">
                                <ItemTemplate>
                                    <p>
                                        <%#Container.DataItem %></p>
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                    <% } %>
                </table>
            </div>
        </asp:View>
    </asp:MultiView>
</div>
<script type="text/javascript" src="/_layouts/RoketSolutions.SP2010.LinkedInWebPart/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/_layouts/RoketSolutions.SP2010.LinkedInWebPart/js/jquery-ui-1.8.18.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="/_layouts/RoketSolutions.SP2010.LinkedInWebPart/Themes/Start/jquery-ui-1.8.18.custom.css"/>
